<template>
  <div class="order">
    <p>
      {{ addorders.orderContent | actorToStr(15)
      }}<span>等{{ addorders.total }}</span
      >件商品<b>{{ addorders.orderStatu }}</b>
    </p>
    <div class="commodity">
      <div class="square" v-for="(item, index) in addorders.total">
        <img v-lazy="addorders.picture[0]" />
      </div>
    </div>
    <div class="money">
      <span
        >应付金额:¥<b>{{ addorders.table }}</b></span
      >
      <button>取消订单</button>
      <button>立即付款</button>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: {
    addorders: Object,
  },
  mounted() {
    // console.log(this.addorders);
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.order {
  padding: 15px;
  &:nth-last-child(1) {
    margin-bottom: 20px;
  }
  p {
    font-size: 14px;
    b {
      font-size: 14px;
      color: red;
      margin-right: 20px;
      font-weight: normal;
      float: right;
    }
  }
  .commodity {
    margin-top: 10px;
    width: 80%;
    height: 100px;
    overflow: hidden;
    .square {
      float: left;
      width: 80px;
      height: 80px;
      border-radius: 10px;
      overflow: hidden;
      margin-right: 10px;
      margin-top: 5px;
      img {
        margin-top: 10px;
        width: 90px;
        height: 90px;
        float: left;
      }
    }
  }
  .skip {
    font-size: 30px;
    margin-top: 20px;
    color: #3333;
    position: absolute;
    right: 20px;
  }
  .money {
    span {
      font-size: 14px;
      b {
        font-weight: normal;
      }
    }
    button {
      width: 70px;
      height: 30px;
      background: white;
      border: 1px solid #a2a4a4;
      margin-left: 80px;
      color: #a2a4a4;
      border-radius: 5px;
      font-size: 14px;
      &:nth-of-type(2) {
        margin-right: 0px;
        margin-left: 20px;
        color: white;
        background: #3bb19c;
        border: 0;
      }
    }
  }
}
</style>